package com.fjec.activity.service.impl;

import com.fjec.activity.feign.MarketClient;
import com.fjec.activity.service.IRPCService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RPCServiceImpl implements IRPCService {
    @Autowired
    private MarketClient marketClient;

    @Cacheable(value = "secKillGiftCache", key = "'fjec:secKillGiftCache:giftsInfo'")
    @Override
    public List<Map<String, Object>> getGiftInfo(int servType) {
        return marketClient.getGiftInfo(servType);
    }
}
